#include "my_time.h"
#include <omp.h>

#define N 100000000
int main() {
  MyTimeI;
  MyTimeA;

  static int A[N], B[N], i;
#pragma omp parallel for num_threads(4)
  for (i = 0; i < N; i++) {
    B[i] = i;
    A[i] = 2 * B[i];
  }
  MyTimeB;

  printf("A[n]=%d, B[n]=%d\n", A[N - 1], B[N - 1]);
}